/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.tag.entity;

import org.hibernate.validator.constraints.Length;
import cn.apestar.common.persistence.DataEntity;

/**
 * 标签Entity
 * 
 * @author LVH
 * @version 2016-02-21
 */
public class Tag extends DataEntity<Tag> {

    private static final long serialVersionUID = 1L;
    private String tagName; // 标签名称
    private Long tagType; // 标签类型
    private Long cmInstitutionId; // 机构ID
    private String tagDescribe; // 标签描述
    private String institutionName;

    public String getInstitutionName() {
        return institutionName;
    }

    public void setInstitutionName(String institutionName) {
        this.institutionName = institutionName;
    }

    public Tag() {
        super();
    }

    public Tag(String id) {
        super(id);
    }

    @Length(min = 0, max = 64, message = "标签名称长度必须介于 0 和 64 之间")
    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Long getTagType() {
        return tagType;
    }

    public void setTagType(Long tagType) {
        this.tagType = tagType;
    }

    public Long getCmInstitutionId() {
        return cmInstitutionId;
    }

    public void setCmInstitutionId(Long cmInstitutionId) {
        this.cmInstitutionId = cmInstitutionId;
    }

    @Length(min = 0, max = 255, message = "标签描述长度必须介于 0 和 255 之间")
    public String getTagDescribe() {
        return tagDescribe;
    }

    public void setTagDescribe(String tagDescribe) {
        this.tagDescribe = tagDescribe;
    }

}